<?php
/**
 * Created by PhpStorm.
 * User: Emmett
 * Date: 2016/8/30
 * Time: 17:30
 */

namespace Business\Report;

use Business\StrategyBase;

abstract class ReportStrategyBase extends StrategyBase implements iReportStrategy
{
    public function view_path($view_name = 'index')
    {
        if ($this->user_auth != 0) {
            $path = T('Report/' . $this->auth_name[$this->user_auth] . '/' . $view_name);
        } else {
            $path = T('Report/' . $view_name);
        }
        return $path;
    }
}